/* stylelint-disable color-function-notation */
/* stylelint-disable alpha-value-notation */
/* stylelint-disable no-descending-specificity */
/* stylelint-disable selector-pseudo-element-colon-notation */
/* stylelint-disable rule-empty-line-before */
/* stylelint-disable order/properties-order */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  background-color: var(--color-bg-1);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

[id] {
  scroll-margin-top: 60px;
}

.echarts-tooltip-diy {
  background: linear-gradient(
    304.17deg,
    rgba(253, 254, 255, 0.6) -6.04%,
    rgba(244, 247, 252, 0.6) 85.2%
  ) !important;
  border: none !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 6px !important;
  .content-panel {
    display: flex;
    justify-content: space-between;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.8);
    width: 164px;
    height: 32px;
    line-height: 32px;
    box-shadow: 6px 0px 20px rgba(34, 87, 188, 0.1);
    border-radius: 4px;
    margin-bottom: 4px;
  }
  .tooltip-title {
    margin: 0 0 10px 0;
  }
  p {
    margin: 0;
  }
  .tooltip-title,
  .tooltip-value {
    font-size: 13px;
    line-height: 15px;
    display: flex;
    align-items: center;
    text-align: right;
    color: #1d2129;
    font-weight: bold;
  }
  .tooltip-item-icon {
    display: inline-block;
    margin-right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
}

.general-card {
  border-radius: 4px;
  border: none;
  & > .arco-card-header {
    height: auto;
    padding: 20px;
    border: none;
  }
  & > .arco-card-body {
    padding: 0 20px 20px 20px;
  }
}

.split-line {
  border-color: rgb(var(--gray-2));
}

.arco-table-cell {
  .circle {
    display: inline-block;
    margin-right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgb(var(--blue-6));
    &.pass {
      background-color: rgb(var(--green-6));
    }
  }
}

.score {
  width: 100%;
  color: #444;
  border: 1px solid rgb(var(--gray-3));

  td {
    width: 4.4%;
    padding: 0 5px;
    line-height: 24px;
    text-align: center;
    border-right: 1px solid rgb(var(--gray-3));
    border-bottom: 1px solid rgb(var(--gray-3));

    &:first-child {
      width: 8%;
      color: #fff;
      text-align: left;
      background: #555;
    }

    &:last-child {
      border-right: none;
    }
  }

  tr:last-child {
    td {
      border-bottom: none;
    }
  }

  .bold {
    color: #333;
    font-weight: 600;
  }

  .birdie-score {
    background: rgb(var(--red-3));
  }

  .eagle-score {
    background: rgb(var(--blue-3));
  }

  .toggle-btn {
    cursor: pointer;
  }
}

.section-title {
  display: flex;
  align-items: center;
  height: 40px;
  font-weight: 500;
  position: relative;
  padding-left: 10px;
  &:before {
    content: '';
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: rgb(var(--primary-6));
  }
}

.common-table {
  width: 100%;
  border: 1px solid rgb(var(--gray-3));

  &-row {
    &.header {
      font-weight: 500;
    }

    td {
      padding: 6px 8px;
      border-bottom: 1px solid rgb(var(--gray-3));
      border-right: 1px solid rgb(var(--gray-3));
      &:last-child {
        border-right: none;
      }
    }
  }

  tr:last-child {
    td {
      border-bottom: none;
    }
  }
}
